import  re

language = 'Python php python java'
r = re.findall('python',language,re.S)
print(r)